home *** CD-ROM | disk | FTP | other *** search
- on startMovie
- global gMRollList, gLastPic, glastRoll, gMode
- set glastRoll to 0
- set gMRollList to linearIntList(3, 16)
- set gLastPic to 0
- if the machineType = 256 then
- set the soundLevel to 5
- updateStage()
- end if
- if voidp(gMode) then
- set gMode to #inter
- end if
- end
-
- on linearCheck
- end
-
- on keyDown
- global gMode
- if the movieName contains "splash" then
- nothing()
- else
- if (the key = "l") or (the key = "L") then
- alert("Linear Mode is deactivated in this demo.")
- end if
- end if
- end
-
- on linearOn
- global gMode
- set gMode to #linear
- alert("Linear Mode On. Click mouse or press the 'L' key to stop self-running.")
- puppetsOff()
- go("bunny", "linear")
- cursor([903, 904])
- end
-
- on linearOff
- global gMode
- set gMode to #inter
- alert("Linear Mode Off.")
- puppetsOff()
- cursor(4)
- go("main")
- cursor(-1)
- end
-
- on doLinear movName
- end
-
- on infoDelay
- end
-
- on puppetsOff
- repeat with i = 1 to 48
- if the castNum of sprite i <> 0 then
- puppetSprite(i, 0)
- updateStage()
- end if
- end repeat
- end
-
- on hiliteOn theList
- set spr to getAt(theList, 1)
- puppetSprite(spr, 1)
- set the castNum of sprite spr to getAt(theList, 3)
- updateStage()
- end
-
- on hiliteOff theList
- set spr to getAt(theList, 1)
- set the castNum of sprite spr to getAt(theList, 2)
- updateStage()
- puppetSprite(spr, 0)
- end
-
- on linearIntList firstEntry, lastEntry
- set ret to []
- if firstEntry > lastEntry then
- set count to 1
- repeat with i = firstEntry down to lastEntry
- setAt(ret, count, i)
- set count to count + 1
- end repeat
- else
- repeat with i = firstEntry to lastEntry
- addAt(ret, i)
- end repeat
- end if
- return ret
- end
-
- on wordPlay offst
- set spr to the clickOn
- set rcn to the castNum of sprite spr
- puppetSprite(spr, 1)
- set the castNum of sprite spr to rcn + offst
- updateStage()
- puppetSound(the name of cast (rcn + offst + offst))
- updateStage()
- repeat while soundBusy(1)
- nothing()
- end repeat
- set the castNum of sprite spr to rcn
- updateStage()
- puppetSprite(spr, 0)
- puppetSound(0)
- updateStage()
- end
-